package com.qidian.mes.pojo;


/**
 * @Author dqy
 * @Description
 * @Time 2024/4/29 18:48
 */
public class OrderBOM {
    private Long bomId; // BOM组成id
    private Long woId; // 工单id
    private Long matId; // 物料编码
    private String matName; // 物料名称
    private String matModel; // 物料规格
    private String matUnit; // 物料单位
    private Long proId; // 产品编码
    private String proName; // 产品名称
    private String proModel; // 产品规格
    private String proUnit; // 产品单位
    private int category; // 分类 0：产品 1：物料
    private Double bomUsage; // 预计使用量

    public OrderBOM() {
    }

    public OrderBOM(Long bomId, Long woId, Long matId, String matName, String matModel, String matUnit, Long proId, String proName, String proModel, String proUnit, int category, Double bomUsage) {
        this.bomId = bomId;
        this.woId = woId;
        this.matId = matId;
        this.matName = matName;
        this.matModel = matModel;
        this.matUnit = matUnit;
        this.proId = proId;
        this.proName = proName;
        this.proModel = proModel;
        this.proUnit = proUnit;
        this.category = category;
        this.bomUsage = bomUsage;
    }

    public Long getBomId() {
        return bomId;
    }

    public void setBomId(Long bomId) {
        this.bomId = bomId;
    }

    public Long getWoId() {
        return woId;
    }

    public void setWoId(Long woId) {
        this.woId = woId;
    }

    public Long getMatId() {
        return matId;
    }

    public void setMatId(Long matId) {
        this.matId = matId;
    }

    public String getMatName() {
        return matName;
    }

    public void setMatName(String matName) {
        this.matName = matName;
    }

    public String getMatModel() {
        return matModel;
    }

    public void setMatModel(String matModel) {
        this.matModel = matModel;
    }

    public String getMatUnit() {
        return matUnit;
    }

    public void setMatUnit(String matUnit) {
        this.matUnit = matUnit;
    }

    public Long getProId() {
        return proId;
    }

    public void setProId(Long proId) {
        this.proId = proId;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public String getProModel() {
        return proModel;
    }

    public void setProModel(String proModel) {
        this.proModel = proModel;
    }

    public String getProUnit() {
        return proUnit;
    }

    public void setProUnit(String proUnit) {
        this.proUnit = proUnit;
    }

    public int getCategory() {
        return category;
    }

    public void setCategory(int category) {
        this.category = category;
    }

    public Double getBomUsage() {
        return bomUsage;
    }

    public void setBomUsage(Double bomUsage) {
        this.bomUsage = bomUsage;
    }

    @Override
    public String toString() {
        return "OrderBOM{" +
                "bomId=" + bomId +
                ", woId=" + woId +
                ", matId=" + matId +
                ", matName='" + matName + '\'' +
                ", matModel='" + matModel + '\'' +
                ", matUnit='" + matUnit + '\'' +
                ", proId=" + proId +
                ", proName='" + proName + '\'' +
                ", proModel='" + proModel + '\'' +
                ", proUnit='" + proUnit + '\'' +
                ", category=" + category +
                ", bomUsage=" + bomUsage +
                '}';
    }
}

